package com.epwk.pages;

import com.android.uiautomator.core.UiObjectNotFoundException;
import com.android.uiautomator.testrunner.UiAutomatorTestCase;
import com.epwk.Elements;

public class LoginPage extends UiAutomatorTestCase{
	
	public void enterAccount(String name) throws UiObjectNotFoundException{
		Elements.findById("com.epweike.employer.android:id/login_name").setText(name);
	}
	
	public void enterPassword(String pwd) throws UiObjectNotFoundException{
		Elements.findById("com.epweike.employer.android:id/login_pwd").setText(pwd);
	}
	
	public void clickLoginBtn() throws UiObjectNotFoundException{
		Elements.findById("com.epweike.employer.android:id/btn_login").clickAndWaitForNewWindow();
	}

}
